package com.example.webcrawler.service;

import com.example.webcrawler.model.ApiRequest;
import com.example.webcrawler.model.FlowTest;

import java.util.List;
import java.util.Map;

public interface FlowService {
    
    /**
     * 获取所有已保存的流程
     */
    List<FlowTest> getAllSavedFlows();
    
    /**
     * 保存流程
     */
    FlowTest saveFlow(FlowTest flowTest);
    
    /**
     * 删除流程
     */
    void deleteFlow(String flowId);
    
    /**
     * 执行流程测试
     */
    Map<String, Object> executeFlow(FlowTest flowTest) throws Exception;
    
    /**
     * 根据流程ID获取请求
     */
    List<ApiRequest> getRequestsByFlowId(String flowId);
}
